package com.loan.manager.impl;

import com.loan.dal.entity.InPhoneDO;
import com.loan.dal.mapper.InPhoneMapper;
import com.loan.manager.InPhoneManager;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Slf4j
@Repository
public class InPhoneManagerImpl implements InPhoneManager {

    @Autowired
    private InPhoneMapper inPhoneMapper;

    @Override
    public Integer addInCustomer(InPhoneDO inPhoneDO) {
        return inPhoneMapper.insert(inPhoneDO);
    }

    @Override
    public Integer modifyInCustomer(InPhoneDO inPhoneDO) {
        return inPhoneMapper.editById(inPhoneDO);
    }

    @Override
    public InPhoneDO selectById(Integer userId) {
        return inPhoneMapper.selectById(userId);
    }

}
